{% extends "base.html" %}
{% block page_title %}account{% endblock %}
{% block css %}
	<link rel="stylesheet" href="/static/account/style.css">
{% endblock %}
{% block content %}
	<ul id="nav">
	  <li><a href="/defence/" title="My Alarms">My Alarms</a><span>/</span></li>
	  <li><a href="/defence/myPrefix" title="My Prefixs">My Prefixs</a><span>/</span></li>
	  <li><a href="/defence/myASN" title="My ASNs">My ASNs</a><span>/</span></li>
	  <li><a href="/account/profile/" title="My Account">My Account</a><span>/</span></li>
	</ul><!--end nav--><!-- class="current" class="anews"-->
	{% if emailMsg %}
	<div class="notice">
		<p class="warn">{{emailMsg}}</p>
	</div>
	{% endif %}
	{% if passwordMsg %}
	<div class="notice">
		<p class="warn">{{passwordMsg}}</p>
	</div>
	{% endif %}
<div class="myCenter-left">	
<form action="/account/profile/"  method="post">{% csrf_token %}
	<div class="setDataBox">
		<div class="setDataBox-div" style="margin-bottom: 10px"><span>username：</span><b>{{user.username}}</b></div>
		<div class="setDataBox-div"><span>Email：</span><input type="text" class="text5" name="email" value="{{user.email}}"/></div>
		<div class="setDataBox-div"><span>Old password：</span><input type="password" class="text4" name="password"/></div>
		<div class="setDataBox-div"><span>New password：</span><input type="password" class="text4" name="password1"/></div>
		<div class="setDataBox-div"><span>Retype new password：</span><input type="password" class="text4" name="password2"/></div>
		<input type="submit" value="Save" class="profileButton" />
	</div>
</form>
</div>
{% endblock %}

